home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
t_os
/
gpen32k
/
source.exe
/
LIB
/
OSRC
/
OBOX.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-19
|
529b
|
22 lines
/************************************************************
* 共通一般ライブラリー OKOME System 2 *
************************************************************/
#include <EGB.H>
#include <normlib.h>
extern char work[];
void box(int x, int y, int xn, int yn, int wm, int c1, int c2)
{
char pa[64];
EGB_paintMode(work, wm);
EGB_color(work, 0, c1);
EGB_color(work, 2, c2);
WORD(pa ) = x;
WORD(pa + 2) = y;
WORD(pa + 4) = xn;
WORD(pa + 6) = yn;
EGB_rectangle(work, pa);
}